home *** CD-ROM | disk | FTP | other *** search
Wrap
GetIcon 1.0 by Frédéric RINALDI DESCRIPTION GetIcon allows to add in teh current stack an ICON resource coming from the Desktop file. It requires System 7. SYNTAX GetTheIcon(<file "creator,type" or pathName>[,<volume name>]) PARAMETERS <file "creator,type" or pathName> can be a two items string built with file creator & type, or the full pathname of a file. <volume name> is optional, and allows to define the volume from where the ICON has to come from. Default scans all mounted volumes. Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output). USING The XCMD creates an ICON resource in the current stack with random ID and name built with file creator & type. If the resource already exists, the XCMD simply returns its info without creating another one. If the icon is found, the XCMD return a two items string with resource name & ID. ERRORS If an error occurs, the XCMD can return : "Error : GetIcon requires System 7" "Error : Missing or empty parameter" "Error : Out of memory" "Error : Couldn't add resource" "Error : Entry not found" "Error : Not a file" "Error : Alias file not supported" "Error : Volume not found" "Error : Bad Name" "Error : File not found" "Error : Folder not found" "Error : I/O Error" "Error : Volume is full" "Error : Volume is locked" "Error : Couln't create copy buffer" GetIcon XCMD, © Frederic Rinaldi, 1989…1993. HISTORY 1.0 03/13/92 • First release -------------------------------------------------------------------- All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present : GetIcon XCMD, © Frederic Rinaldi, 1989…1993. Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111 Internet : RINALDI1@APPLELINK@APPLE.COM